<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>中心医院医疗服务系统</title>
<link rel="stylesheet" type="text/css"
	href="<c:url value="/css/themes/default/easyui.css"/>">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/css/themes/icon.css"/>">
<style>
	ul,li{
		padding: 0px;
		margin: 0px;
		list-style: none;
	}
	li{
		height:25px;
	}
</style>	
<script type="text/javascript" src="<c:url value="/js/jquery.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/js/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/js/easyui-lang-zh_CN.js"/>"></script>
<script type="text/javascript">
	
</script>
</head>
<body>
	<table id="lmb-yt" class="easyui-datagrid" data-options="
			fitColumns:true,fit:true,
			url:'to_findCouPurchaseByResult',
			rownumbers: true,
      		toolbar: '#lmb—yt—tb',
      		border:false">
		<thead>
			<tr>
				<th data-options="field:'',width:'5%',checkbox:true"></th>
				<th data-options="field:'cpId',width:'15%'">采购单号</th>
				<th data-options="field:'cpPlId',width:'15%'">采购计划单号</th>
				<th data-options="field:'sname',width:'12%'">采购员</th>
				<th data-options="field:'cpTime', width:'12%',
						formatter:function(value){
                          var date = new Date(value);  
                          return date.toLocaleDateString();  
                 }">采购日期</th>
				<th data-options="field:'cpStatus',width:'11%'">验收状态</th>
				<th data-options="field:'yname',width:'12%'">验收人</th>
				<th data-options="field:'yDate',width:'12%',
					formatter:function(value){
						if(value){
							var date = new Date(value);  
                            return date.toLocaleDateString();
						}
                    }
				">验收时间</th>
				<th data-options="field:'yresult',width:'10%',">验收结果</th>
			</tr>
		</thead>
	</table>
	
	<div id="lmb—yt—tb">
		<a id="yt-query" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">查看采购单详情</a>
		<a id="yt-edit" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">退货处理</a>
	</div>			
</body>
</html>